import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios';

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

axios.defaults.baseURL = 'http://localhost:1145/'     //本地开发
// axios.defaults.baseURL = 'http://119.29.202.127:8080/ai'     //服务器

import './css/all.css'

import * as Elicons from "@element-plus/icons-vue";
const app = createApp(App);
for (const name in Elicons) {
  app.component(name, Elicons[name]);
}

app.use(Antd);
app.use(ElementPlus);
app.use(createPinia());
app.use(router);
app.mount('#app');




// createApp(App).use(router).use(Antd).use(createPinia()).use(ElementPlus).mount('#app')
